﻿@model IEnumerable<AutomatedTestDataManagement.Models.TestStep>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.Label("Description")
        </th>
        <th>
            @Html.Label("Step Kind")
        </th>
        <th>
            @Html.Label("Linked Data Record")
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.StepDescription)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StepKind.StepKind1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DataID)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.TestStepID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.TestStepID })
        </td>
    </tr>
}

</table>
<div>
    @Html.Partial("_TestSuiteNav")
</div>